﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QCCure
{
    public partial class FormBugViewer : Form
    {
        public bool Terminate { get; set; }
        public ControlBugViewer BugViewer { get { return this.controlBugViewer; } }

        public FormBugViewer()
        {
            InitializeComponent();
        }

        private void controlBugViewer_SaveClick(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void FormBugViewer_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (Terminate)
            {
                return;
            }
            else
            {
                e.Cancel = true;
                this.Hide();
            }
        }
    }
}
